<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateCustomersTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('customers', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('cus_name', 100);
			$table->string('cus_type', 100)->nullable();
			$table->string('cus_stage', 100)->nullable();
			$table->string('cus_no')->nullable();
			$table->string('cus_rank', 100)->nullable();
			$table->string('cus_state', 100)->nullable();
			$table->string('cus_goods', 100)->nullable();
			$table->time('cus_cost_time')->nullable();
			$table->integer('cus_cost')->nullable();
			$table->string('cus_tel', 100)->nullable();
			$table->string('cus_fox', 100)->nullable();
			$table->time('contact_time')->nullable();
			$table->string('belong_filiale')->nullable();
			$table->text('cus_address', 65535)->nullable();
			$table->string('remarks')->nullable();
			$table->string('cus_contacts', 100)->nullable();
			$table->string('cus_contacts_name', 100)->nullable();
			$table->string('cus_contacts_office', 100)->nullable();
			$table->string('cus_contacts_tel', 100)->nullable();
			$table->string('cus_contacts_sex', 5)->nullable();
			$table->string('cus_contacts_snsno', 5)->nullable();
			$table->string('cus_contacts_email')->nullable();
			$table->text('cus_contacts_address', 65535)->nullable();
			$table->string('cus_contacts_remarks')->nullable();
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('customers');
	}

}
